vpci/msix: carve p2m hole for MSIX MMIO regions
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 26 Nov 2018 14:41:42 +0000 (15:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 26 Nov 2018 14:41:42 +0000 (15:41 +0100)
commit677053fac17ab6f77510b1fa19056846b9029b69
tree964573d048e3d563a77b80fa91f64539f77d843e
parent3e568fa9e19ccefcfd0d3056cb80d0b15f2bf0f7
vpci/msix: carve p2m hole for MSIX MMIO regions

Make sure the MSIX MMIO regions don't have p2m entries setup, so that
accesses to them trap into the hypervisor and can be handled by vpci.

Commit 042678762 ("x86/iommu: add map-reserved dom0-iommu option to
map reserved memory ranges") added mappings for all the reserved
regions into the PVH Dom0 p2m, and some of those reserved regions
might contain MSIX MMIO regions, hence the need to make sure there are
no mappings established.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/vpci/header.c
xen/drivers/vpci/msix.c
xen/include/xen/vpci.h